import sys
import time
sys.path.append('src')
from src.interfaces.api_with_docs import app

if __name__ == '__main__':
    print("Starting API server with documentation...")
    print("API Documentation will be available at:")
    print("  - Swagger UI: http://localhost:5000/api/docs/")
    print("  - OpenAPI Spec: http://localhost:5000/api/swagger.json")
    print("  - Health Check: http://localhost:5000/api/health/")
    print("\nPress Ctrl+C to stop the server.")
    
    app.run(debug=True, host='0.0.0.0', port=5000)